package com.accloud.service;

import java.io.Serializable;

public class ACDeviceFind implements Serializable {
    public static final int HTTP_MODE = 2;
    public static final int SECURITY_DYNAMIC = 2;
    public static final int SECURITY_NONE = 0;
    public static final int SECURITY_STATIC = 1;
    public static final int SECURITY_UNKNOWN = -1;
    public static final int SIZE_HEAD = 16;
    public static final int SIZE_IP_ADDRESS = 4;
    public static final int SIZE_LAN_MODE = 1;
    public static final int SIZE_MAIN_DOMAIN = 6;
    public static final int SIZE_PADDING = 1;
    public static final int SIZE_PHYSICAL_ID = 1;
    public static final int SIZE_SECURITY_MODE = 1;
    public static final int SIZE_SUB_DOMAIN = 2;
    public static final int TCP_MODE = 0;
    public static final int UDP_MODE = 1;
    private static final long serialVersionUID = 16777232;
    protected String ip;
    protected int lanMode;
    protected int linkQuality;
    protected String physicalDeviceId;
    protected int securityMode;
    protected long subDomainId;

    @Deprecated
    public ACDeviceFind(long subDomainId2, String ip2, String physicalDeviceId2) {
        this(subDomainId2, ip2, physicalDeviceId2, 0, -1);
    }

    public ACDeviceFind(long subDomainId2, String ip2, String physicalDeviceId2, int lanMode2, int securityMode2) {
        this.subDomainId = subDomainId2;
        this.ip = ip2;
        this.physicalDeviceId = physicalDeviceId2;
        this.lanMode = lanMode2;
        this.securityMode = securityMode2;
    }

    public long getSubDomainId() {
        return this.subDomainId;
    }

    public String getPhysicalDeviceId() {
        return this.physicalDeviceId;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip2) {
        this.ip = ip2;
    }

    public int getLanMode() {
        return this.lanMode;
    }

    public int getSecurityMode() {
        return this.securityMode;
    }

    public int getLinkQuality() {
        return this.linkQuality;
    }

    public void setLinkQuality(int linkQuality2) {
        this.linkQuality = linkQuality2;
    }

    @Override // java.lang.Object
    public int hashCode() {
        return this.physicalDeviceId.hashCode();
    }

    @Override // java.lang.Object
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o.getClass() != ACDeviceFind.class) {
            return false;
        }
        ACDeviceFind deviceFind = (ACDeviceFind) o;
        return deviceFind.subDomainId == this.subDomainId && deviceFind.physicalDeviceId.equals(this.physicalDeviceId);
    }

    @Override // java.lang.Object
    public String toString() {
        return "ACDeviceFind{, subDomainId=" + this.subDomainId + ", ip='" + this.ip + "', physicalDeviceId='" + this.physicalDeviceId + "', lanMode=" + this.lanMode + ", securityMode=" + this.securityMode + '}';
    }
}
